package com.minova.demo.mapper;

import com.minova.demo.entity.TzOrder;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
public interface TzOrderMapper extends BaseMapper<TzOrder> {

	@Select("select * from tz_order where order_number = #{flow} or dvy_flow_id = #{flow}")
	TzOrder selectByFlow(@Param("flow")String flow);

}
